.sf_core_modal_main {
  max-height: calc(100vh - 80px);

  & > div {
    width: 100%;
    height: 100%;
  }

  &.sf_core_modal_un_title {
    .ant-modal-content {
      padding-top: 0;
    }
  }

  & > .react-draggable {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid @border-color-base;
    border-radius: @border-radius-base;
  }

  .ant-modal-content {
    box-sizing: border-box;
    padding: 0;
    padding-top: 37px;
    padding-bottom: 44px;
    height: 100%;
    overflow: hidden;
    position: relative;

    & > .ant-modal-close {
      top: 0;
      right: 0;
    }

    .ant-modal-header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 37px;
      box-sizing: border-box;
      border-bottom: 1px solid #eee;
      margin: 0;

      .ant-modal-title {
        padding: 10px;

        .sf_core_modal_title {
          cursor: all-scroll;
        }
      }
    }

    .ant-modal-body {
      box-sizing: border-box;
      padding: 5px;
      margin: 0;
      max-height: calc(100vh - 160px);
      height: 100%;
      overflow: auto;
    }

    .ant-modal-footer {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 50px;
      padding: 10px;
      border-top: 1px solid #eee;
      margin: 0;
    }
  }
  &.sf_core_modal_un_footer {
    .ant-modal-content {
      padding-bottom: 0;
    }
    .ant-modal-body {
      max-height: calc(100vh - 100px);
    }
  }
  &.sf_core_modal_un_title_and_footer {
    .ant-modal-content {
      padding-top: 0;
      padding-bottom: 0;
    }
    .ant-modal-body {
      max-height: calc(100vh - 100px);
    }
  }
}

.sf_core_modal_leftSearchMenu {
  .ant-modal-body {
    padding: 0;
  }
}